export const diagramXML =
  `<?xml version="1.0" encoding="UTF-8"?>
<bpmn2:definitions 
xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:activiti="http://activiti.org/bpmn" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL" 
xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" 
xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" 
xmlns:di="http://www.omg.org/spec/DD/20100524/DI" 
xmlns:camunda="http://camunda.org/schema/1.0/bpmn" 
id="sample-diagram" 
targetNamespace="http://bpmn.io/schema/bpmn" 
xsi:schemaLocation="http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd">
  <bpmn2:process id="Process_1" isExecutable="true">
    <bpmn2:startEvent id="StartEvent_1" name="开始">
    </bpmn2:startEvent>
    <bpmn2:endEvent id="EndEvent_129o9ek" name="结束">
    </bpmn2:endEvent>
    <bpmn2:userTask id="UserTask_1b76jqd" name="团队长" activiti:candidateGroups="role1">
    </bpmn2:userTask>
    <bpmn2:exclusiveGateway id="ExclusiveGateway_1qzynfg">
    </bpmn2:exclusiveGateway>
    <bpmn2:sequenceFlow id="SequenceFlow_0c7hn2l" sourceRef="UserTask_1b76jqd" targetRef="ExclusiveGateway_1qzynfg" />
    <bpmn2:sequenceFlow id="SequenceFlow_05v7fae" name="驳回" sourceRef="ExclusiveGateway_1qzynfg" targetRef="UserTask_0fihkhj">` +
  '<conditionExpression xsi:type="tFormalExpression"><![CDATA[${approvalResult == "N"}]]></conditionExpression>' +
  `</bpmn2:sequenceFlow>` +
  '<bpmn2:userTask id="UserTask_0af3c7m" name="总经理" activiti:assignee="${per}">' +
  '<bpmn2:multiInstanceLoopCharacteristics isSequential="true" activiti:collection="${rolerole2}" activiti:elementVariable="per"></bpmn2:multiInstanceLoopCharacteristics>' +
  `</bpmn2:userTask>
    <bpmn2:sequenceFlow id="SequenceFlow_1lqycxf" name="同意" sourceRef="ExclusiveGateway_1qzynfg" targetRef="UserTask_0af3c7m">` +
  '<conditionExpression xsi:type="tFormalExpression"><![CDATA[${approvalResult == "Y"}]]></conditionExpression>' +
  `</bpmn2:sequenceFlow>
    <bpmn2:exclusiveGateway id="ExclusiveGateway_101svs3">
    </bpmn2:exclusiveGateway>
    <bpmn2:sequenceFlow id="SequenceFlow_10y2e47" sourceRef="UserTask_0af3c7m" targetRef="ExclusiveGateway_101svs3" />
    <bpmn2:sequenceFlow id="SequenceFlow_0qkrl6s" name="同意1" sourceRef="ExclusiveGateway_101svs3" targetRef="EndEvent_129o9ek">` +
  '<conditionExpression xsi:type="tFormalExpression"><![CDATA[${approvalResult == "Y"}]]></conditionExpression>' +
  `</bpmn2:sequenceFlow>
    <bpmn2:userTask id="UserTask_0fihkhj" name="申请人" activiti:assignee="user2">
    </bpmn2:userTask>
    <bpmn2:sequenceFlow id="SequenceFlow_07zq61e" sourceRef="StartEvent_1" targetRef="UserTask_0fihkhj" />
    <bpmn2:sequenceFlow id="SequenceFlow_0dfkz3j" sourceRef="UserTask_0fihkhj" targetRef="UserTask_1b76jqd" />
    <bpmn2:sequenceFlow id="SequenceFlow_05y50iz" name="驳回1" sourceRef="ExclusiveGateway_101svs3" targetRef="UserTask_0fihkhj">` +
  '<conditionExpression xsi:type="tFormalExpression"><![CDATA[${approvalResult == "N"}]]></conditionExpression>' +
  `</bpmn2:sequenceFlow>
  </bpmn2:process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_1">
    <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Process_1">
      <bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
        <dc:Bounds x="202" y="272" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="209" y="315" width="22" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="EndEvent_129o9ek_di" bpmnElement="EndEvent_129o9ek">
        <dc:Bounds x="1082" y="272" width="36" height="36" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1089" y="248" width="22" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="UserTask_1b76jqd_di" bpmnElement="UserTask_1b76jqd">
        <dc:Bounds x="460" y="250" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape id="ExclusiveGateway_1qzynfg_di" bpmnElement="ExclusiveGateway_1qzynfg" isMarkerVisible="true">
        <dc:Bounds x="655" y="265" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_0c7hn2l_di" bpmnElement="SequenceFlow_0c7hn2l">
        <di:waypoint x="560" y="290" />
        <di:waypoint x="655" y="290" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_05v7fae_di" bpmnElement="SequenceFlow_05v7fae">
        <di:waypoint x="680" y="315" />
        <di:waypoint x="680" y="380" />
        <di:waypoint x="380" y="380" />
        <di:waypoint x="380" y="330" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="511" y="362" width="21" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_0af3c7m_di" bpmnElement="UserTask_0af3c7m">
        <dc:Bounds x="780" y="250" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_1lqycxf_di" bpmnElement="SequenceFlow_1lqycxf">
        <di:waypoint x="705" y="290" />
        <di:waypoint x="780" y="290" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="731" y="272" width="23" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="ExclusiveGateway_101svs3_di" bpmnElement="ExclusiveGateway_101svs3" isMarkerVisible="true">
        <dc:Bounds x="945" y="265" width="50" height="50" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_10y2e47_di" bpmnElement="SequenceFlow_10y2e47">
        <di:waypoint x="880" y="290" />
        <di:waypoint x="945" y="290" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0qkrl6s_di" bpmnElement="SequenceFlow_0qkrl6s">
        <di:waypoint x="995" y="290" />
        <di:waypoint x="1082" y="290" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="1024" y="272" width="29" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNShape id="UserTask_0fihkhj_di" bpmnElement="UserTask_0fihkhj">
        <dc:Bounds x="310" y="250" width="100" height="80" />
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge id="SequenceFlow_07zq61e_di" bpmnElement="SequenceFlow_07zq61e">
        <di:waypoint x="238" y="290" />
        <di:waypoint x="310" y="290" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_0dfkz3j_di" bpmnElement="SequenceFlow_0dfkz3j">
        <di:waypoint x="410" y="290" />
        <di:waypoint x="460" y="290" />
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge id="SequenceFlow_05y50iz_di" bpmnElement="SequenceFlow_05y50iz">
        <di:waypoint x="970" y="265" />
        <di:waypoint x="970" y="210" />
        <di:waypoint x="360" y="210" />
        <di:waypoint x="360" y="250" />
        <bpmndi:BPMNLabel>
          <dc:Bounds x="651" y="192" width="28" height="14" />
        </bpmndi:BPMNLabel>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</bpmn2:definitions>
`;
